package com.wjk.kylin.rpc.samples.consumer.controller;

import com.wjk.kylin.rpc.samples.consumer.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wjk
 */
@RestController
public class IndexController {
    @Autowired
    private IndexService indexService;

    @GetMapping("/hello/{name}")
    public String hello(@PathVariable String name){

        return indexService.index(name);
    }
}
